package com.fuxi.cloud.desreport.render.method;

import freemarker.ext.beans.HashAdapter;

import java.util.List;

/**
 * a
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
public class a {
    public a() {
    }

    public String a(List<HashAdapter> var1, Object var2, String var3) {
        Double var4 = var1.stream().mapToDouble((var1x) -> {
            return Double.parseDouble(var1x.get(var3).toString());
        }).min().getAsDouble();
        return var4.toString();
    }

    public String b(List<HashAdapter> var1, Object var2, String var3) {
        Double var4 = var1.stream().mapToDouble((var1x) -> {
            return Double.parseDouble(var1x.get(var3).toString());
        }).max().getAsDouble();
        return var4.toString();
    }

    public String c(List<HashAdapter> var1, Object var2, String var3) {
        Double var4 = var1.stream().mapToDouble((var1x) -> {
            return Double.parseDouble(var1x.get(var3).toString());
        }).sum();
        return var4.toString();
    }

    public String d(List<HashAdapter> var1, Object var2, String var3) {
        Double var4 = var1.stream().mapToDouble((var1x) -> {
            return Double.parseDouble(var1x.get(var3).toString());
        }).average().getAsDouble();
        return var4.toString();
    }
}

